package com.songlanyun.modules.freighttemplate.service;

import com.songlanyun.common.drive.IBaseService;
import com.songlanyun.modules.freighttemplate.entity.FreightTemplateRule;
import com.songlanyun.modules.freighttemplate.model.dto.FreightTemplateRuleDTO;

/**
 * 商家的物流模板的规则表（有一条默认规则，有其它与地区关联的特定规则表）
 *
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2020-11-09 18:03:39
 */
public interface FreightTemplateRuleService extends IBaseService<Integer, FreightTemplateRule>  {

    FreightTemplateRule add(Integer freightTemplateId, FreightTemplateRuleDTO dto);
    FreightTemplateRule update(Integer freightTemplateId,Integer ruleId, FreightTemplateRuleDTO dto);
    void delete(Integer freightTemplateId, Integer ruleId);

    FreightTemplateRule createRule(Long shopId, Integer templateId, FreightTemplateRuleDTO dto);

    FreightTemplateRule updateRule(Long shopId, Integer templateId, FreightTemplateRuleDTO dto);

    void deleteRule(Long shopId,Integer templateId, Integer ruleId);
}

